package zhr.chapter8;

public class Example8_5 {
    public static void main(String[] args) {
        Integer[] iNums = {1, 2, 3, 4, 5, 6};
        System.out.println("整数组iNums的和值为" + Calc8_5.sum(iNums) + ",平均值为" + Calc8_5.average(iNums));
        Double[] dNums = {1.1, 2.2, 3.3, 4.4};
        System.out.println("正数组iNums的和值为" + Calc8_5.sum(dNums) + ",平均值为" + Calc8_5.average(dNums));
    }
}
